-- GENERATED SPELL FOR [Clam Master K] --


function spell0_25800(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(49711,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25800', 4500, 1)
end

function spell1_25800(pUnit, Event) --@Throw Spear,n/a--
pUnit:FullCastSpellOnTarget(54431,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25800', 1500, 1)
end

function Sorts_25800(pUnit, Event)
local choix_sorts_25800 = math.random(0, 1)
if choix_sorts_25800 == 0 then
pUnit:RegisterEvent('spell0_25800', 1, 1)
end
if choix_sorts_25800 == 1 then
pUnit:RegisterEvent('spell1_25800', 1, 1)
end
end

function mob25800_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25800', math.random(1500, 3000), 1)
end

function mob25800_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25800_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25800_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25800, 1, 'mob25800_Action')
RegisterUnitEvent(25800, 2, 'mob25800_Leave')
RegisterUnitEvent(25800, 3, 'mob25800_Kill')
RegisterUnitEvent(25800, 4, 'mob25800_Die')
